package com.caineng.zhaobiao.zbapi.utils.genID;

/**
 * 用户ID专用生成,只有13位
 */
public class IDUtils {

    private final static SnowFlake SNOW_FLAKE=new SnowFlake(1,2);

    public static String getID(){
        return SNOW_FLAKE.nextId().toString();
    }

    public static Long getLongId(){
        return SNOW_FLAKE.nextId();
    }

    public static void main(String[] args) {
        for (int i = 0; i < 10000; i++){
            System.out.println(getID());
        }

    }

}
